#ifndef MYPUSHBUTTON_H
#define MYPUSHBUTTON_H

#include <QPushButton>
#include <QDebug>

class MyPushButton : public QPushButton
{
    Q_OBJECT
public:
//    explicit MyPushButton(QWidget *parent = nullptr);

    MyPushButton(QString normalImg, QString pressImg ="");

    QString normalImg; // 默认显示图片路径
    QString pressImg; // 按下后显示图片路径

    //向下跳跃
    void Zoom1();

    //向上跳跃
    void Zoom2();

    //鼠标按下
    void mousePressEvent(QMouseEvent *e);

    //鼠标释放
    void mouseReleaseEvent(QMouseEvent *e);



signals:

public slots:
};

#endif // MYPUSHBUTTON_H
